<?php
echo "<?xml version='1.0' encoding='UTF-8'?>"
?>

<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
	<title>Cooking Recipes</title>
	<link>http://localhost/cookbook/index.php</link>
	<description>The best recipes</description>
	<language>en</language>
<!--  	<pubDate>Wed, 25 Feb 2009 23:07:22 +0000</pubDate> -->
	<?php 
		foreach($recipesMini as $recipe) {
	?>
		<item>
			<title><?php echo $recipe["title"] ?></title>
			<link><![CDATA[ http://localhost/cookbook/index.php?page=viewrecipe&recipeid=<?php echo $recipe["recipeId"] ?> ]]></link>
			<pubDate><?php echo date("D, d M Y H:i:s", $recipe["date"]); ?> +0000</pubDate>
			<dc:creator>
				Administrator
			</dc:creator>
			<guid><![CDATA[ http://localhost/cookbook/index.php?page=viewrecipe&recipeid=<?php echo $recipe["recipeId"] ?> ]]></guid>
			<description><?php echo $recipe["preparation"]?></description>
			<content:encoded>	
				<?php echo $recipe["preparation"]?>
			</content:encoded>
		</item>
	<?
		}
	?>


</channel>

</rss>
